<html>
<head>
    <meta charset="UTF-8">
    <title>户学教育</title>
    <meta name="keywords" content="户学教育">
    <meta name="Description" content="户学教育"/>
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0,  user-scalable=0"/>
    <link rel="stylesheet" href="{HOME_THEME_PATH}../gw/css/idangerous.swiper.css?t={time()}.{rand(10000,9999999)}">
    <link rel="stylesheet" href="{HOME_THEME_PATH}../gw/css/common.css?t={time()}.{rand(10000,9999999)}">
    <link rel="stylesheet" href="{HOME_THEME_PATH}../gw/css/mine.css?t={time()}.{rand(10000,9999999)}"/>
    <link rel="stylesheet" href="{HOME_THEME_PATH}../gw/css/haimi.css?t={time()}.{rand(10000,9999999)}"/>


    <script src="{HOME_THEME_PATH}../gw/js/jquery.min.js?t={time()}.{rand(10000,9999999)}"></script>
    <script type="text/javascript"t src="{THEME_PATH}js/dialog-plus.js?t={time()}.{rand(10000,9999999)}"></script>
    <script type="text/javascript" src="{THEME_PATH}js/jquery.artDialog.js?t={time()}.{rand(10000,9999999)}&skin=default"></script>
    <script type="text/javascript" src="{THEME_PATH}js/dayrui.js?t={time()}.{rand(10000,9999999)}"></script>
    <script type="text/javascript" src="{HOME_THEME_PATH}../gw/js/le_include_head.js?t={time()}.{rand(10000,9999999)}"></script>
    <link rel="icon" href="{HOME_THEME_PATH}../gw/img/f-logo.png" type="image/png" sizes="16x16">

</head>
<body>
<div class="main">
    <!-- 头部 -->
    {template "../gw/common.html"}
    <div class="part part1">
        <div class="part-cont">
            <!-- 目录 -->
            <div class="menu-items pay-item">
                <a class="menu-item" href="{dr_user_url('home/index')}">个人中心</a>
                <a class="menu-item le-my-order active" href="{dr_user_url('pay/myorder')}">我的订单</a>
                <a class="menu-item" href="{dr_user_url('pay/electivecenter')}">选课中心</a>
                <a class="menu-item" href="{dr_user_url('pay/changepassword')}">修改密码</a>
            </div>
            <!-- 内容 -->
            <div class="cont-items pay-content">
                <!-- &lt;!&ndash; 我的订单 &ndash;&gt; -->
                <div class="cont-item count-order" style="display: block;">
                    <!-- 订单页面标题 -->
                    <div class="cont4-title">
                        <div class="cont4-main-title wechat-pay">我的订单 - 信息提交</div>
                    </div>
                    <!-- &lt;!&ndash; 订单内容 &ndash;&gt;-->
                    <div class="" style="height: 650px;">
                        <div class="cont4-cont active">

                            <form action="./index.php?s=user&amp;c=PayHaimi&amp;m=hmdata" name="myForm" method="post" id="">
                                <input type="hidden" name="oid" value="{$orders['id']}">
                                <input type="hidden" name="orderDate" value="{$orders['addtime']}">
                                <input type="hidden" name="projectNo" value="{$orders['order_no']}" placeholder="商户订单号">
                                <input type="hidden" name="contractNo" value="{$orders['order_no']}" placeholder="合约编号">

                                <div class="information">
                                    <!--<div class="title">课程信息：</div>-->
                                    <div class="contantread">
                                        <div>
                                            订单课程编号：<input type="text" name="merProductNo" value="{$courseid['id']}" readonly="readonly">
                                        </div>
                                        <div>
                                            课程名称：<input type="text" name="commodityName" value="{$orders['course_name']}" readonly="readonly">
                                        </div>
                                        <div>
                                            课程金额：<input type="text" name="applyAmt" value="{$orders['totalprice']}" readonly="readonly">
                                        </div>
                                    </div>
                                </div>

                                <div class="information">
                                    <div class="contant">
                                        <div>
                                            姓名：<input type="text" name="studentName" id="studentName" placeholder="请填写学生姓名">
                                        </div>
                                        <div>
                                            申请人：<input type="text" name="applicantName" id="applicantName" placeholder="请填写申请人姓名">
                                        </div>
                                        <div>
                                            手机号：<input type="text" name="mobile" id="mobile" placeholder="手机号">
                                        </div>
                                        <div>
                                            地址：<input type="text" name="homeAddress" id="homeAddress" placeholder="家庭地址">
                                        </div>
                                        <div>
                                            申请分期数：
                                            <!--<input type="text" name="applyTerm" value="" placeholder="申请分期数">-->
                                            <select id="applyTerm" name="applyTerm" style="border:0px;margin:24px 0px 0px 0px;" >
                                                <option value="-1" selected="selected">--请选择--</option>
                                                <option class="oyhfd"  value="3"  >3期</option>
                                                <option class="oyhfd"  value="6"  >6期</option>
                                                <option class="oyhfd"  value="9"  >9期</option>
                                                <option class="oyhfd"  value="12" >12期</option>
                                            </select>
                                        </div>
                                        <div>
                                            邮箱：<input type="text" name="email" id="email" placeholder="email">
                                        </div>

                                        <div>
                                            <input type="submit" value="提交" class="btn2" onclick="return check(this.form)" />
                                            <!--<input type="submit" value="提交" >-->
                                        </div>
                                    </div>

                                </div>

                            </form>

                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <!-- 页尾 -->
    {template "../gw/footer.html"}
</div>
<div class="slide-box">
    <div class="slide-box-wrap">
        <div class="foo-box">
            <div id="foo"></div>
        </div>
    </div>
</div>
<!--
<div class="success-poup-box not-success">
    <div class="box-contect1">支付未完成，请重新支付</div>
</div>
-->
</body>
<script>
    function check(form){
        var studentName = document.getElementById("studentName").value;
        var applicantName = document.getElementById("applicantName").value;
        var mobile = document.getElementById("mobile").value;
        var homeAddress = document.getElementById("homeAddress").value;
        var applyTerm = document.getElementById("applyTerm").value;

        if(!studentName){
            alert("学生姓名不能为空");
            return false;
        }
        if(!applicantName){
            alert("申请人姓名不能为空");
            return false;
        }


        if(!(/^1[34578]\d{9}$/.test(mobile))){
                alert("手机号输入错误");
                return false;
        }
        if(!(/[0-9]/.test(mobile))){
            alert("手机号格式输入错误");
            return false;
        }
        if(!mobile){
            alert("手机号不能为空");
            return false;
        }
        if(!homeAddress){
            alert("家庭地址不能为空");
            return false;
        }
        if(applyTerm == -1){
            alert("请选择申请分期数");
            return false;
        }
        return true;
    }
</script>
<!--<script language=javascript>-->
<!--var int=self.setInterval("orderStatus()",3000)-->
<!--function orderStatus()-->
<!--{-->
<!--$.post("{dr_user_url('order/orderStatus')}",-->
<!--{-->
<!--oid:"{$order['id']}"-->
<!--},-->
<!--function(data,status){-->
<!--var orders = JSON.parse(data);console.log(orders);-->
<!--if(orders.status){-->
<!--// alert(orders.msg);-->
<!--window.location.href = "{dr_user_url('pay/myorder')}";-->
<!--}else{-->
<!--// alert(orders.msg);-->
<!--}-->
<!--});-->
<!--}-->
<!--</script>-->
<script src="{HOME_THEME_PATH}../gw/js/idangerous.swiper.min.js?t={time()}.{rand(10000,9999999)}"></script>
<!--<script src="{HOME_THEME_PATH}../gw/js/area.js?t={time()}.{rand(10000,9999999)}"></script>-->
<!--<script src="{HOME_THEME_PATH}../gw/js/alloy-crop.js?t={time()}.{rand(10000,9999999)}"></script>-->
<script src="{HOME_THEME_PATH}../gw/js/lrz.mobile.min.js?t={time()}.{rand(10000,9999999)}"></script>
<script src="{HOME_THEME_PATH}../gw/js/mine.js?t={time()}.{rand(10000,9999999)}"></script>
<script src="{HOME_THEME_PATH}../gw/js/iscroll.js?t={time()}.{rand(10000,9999999)}"></script>
<script src="{HOME_THEME_PATH}../gw/js/unlock.js?t={time()}.{rand(10000,9999999)}"></script>
<script src="{HOME_THEME_PATH}../gw/js/jquery.slideunlock.min.js?t={time()}.{rand(10000,9999999)}"></script>
</html>